package com.cal.utms.action.payment;

import com.cal.utms.dto.payment.AllCustomer;
import com.cal.utms.model.payment.CommenPayementModel;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class AllCustomersAction extends ActionSupport implements ModelDriven<AllCustomer> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	CommenPayementModel commenPayementModel = new CommenPayementModel();
	private AllCustomer allCustomer = new AllCustomer();

	public String getAllCustomers() {
		allCustomer.setAllCustomers(commenPayementModel.getCustomerByType(allCustomer));
		allCustomer.setSuccess(true);
		return ActionSupport.SUCCESS;
	}

	@Override
	public AllCustomer getModel() {
		return allCustomer;
	}

	public AllCustomer getAllCustomer() {
		return allCustomer;
	}

	public void setAllCustomer(AllCustomer allCustomer) {
		this.allCustomer = allCustomer;
	}

}
